﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="UpdateCustomer.aspx.cs" Inherits="UpdateCustomer" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <p>
        <h1>Update Customer Details</h1>
    </p>
    <p>

        <asp:Label ID="Label1" runat="server" Text="Name:"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txtName" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <asp:Label ID="Label2" runat="server" Text="NRIC"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txtNRIC" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <div class="oneline">
            <asp:Label ID="Label3" runat="server" Text="Address"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtBlock" runat="server" SkinID="mediumTextBox"></asp:TextBox>
            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtBlock" WatermarkText="Unit &amp; Block" WatermarkCssClass="watermarked"></asp:TextBoxWatermarkExtender>
            <asp:TextBox ID="txtStreet" runat="server" SkinID="mediumTextBox"></asp:TextBox>
            <asp:TextBoxWatermarkExtender ID="TextStreet_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="txtStreet" WatermarkCssClass="watermarked" WatermarkText="Street">
            </asp:TextBoxWatermarkExtender>
            <asp:TextBox ID="txtCity" runat="server" SkinID="mediumTextBox"></asp:TextBox>
            <asp:TextBoxWatermarkExtender ID="TextCity_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="txtCity" WatermarkCssClass="watermarked" WatermarkText="City">
            </asp:TextBoxWatermarkExtender>
            <asp:TextBox ID="txtProvince" runat="server" SkinID="mediumTextBox"></asp:TextBox>
            <asp:TextBoxWatermarkExtender ID="TextProvince_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="txtProvince" WatermarkCssClass="watermarked" WatermarkText="Province">
            </asp:TextBoxWatermarkExtender>
            <asp:DropDownList ID="ddlCountry" runat="server" Style="width: 100px;"
                DataSourceID="LinqDataSource1" DataTextField="Country" DataValueField="ID">
            </asp:DropDownList>
            <asp:LinqDataSource ID="LinqDataSource1" runat="server"
                ContextTypeName="MailDistributionSystemDBDataContext" EntityTypeName=""
                Select="new (Country, ID)" TableName="tblCountries">
            </asp:LinqDataSource>
            <%--<label>Address</label>--%>
        </div>
        <br />
        <asp:Label ID="Label4" runat="server" Text="Tel/Mobile:"></asp:Label>
        &nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txtContact" runat="server"></asp:TextBox>
        <br />
        <asp:Label ID="Label5" runat="server" Text="Email"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="txtEmail" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <asp:Button ID="Submit" runat="server" Text="Update Customer"
            OnClick="Submit_Click" />

    </p>
</asp:Content>
